package com.ph.irp.base.assistantmaterial.dao;
import java.util.List;
import com.ph.irp.model.PBaseAssistantmaterialDeliverymethod;

public interface PBaseAssistantmaterialDeliverymethodDao {

	public void addDeliverymethod(PBaseAssistantmaterialDeliverymethod deliveryMethod)throws Throwable;
	
	public void deleteDeliverymethod(int deliveryMethodId)throws Throwable;
	
	public void updateDeliverymethod(PBaseAssistantmaterialDeliverymethod deliveryMethod)throws Throwable;
	
	public PBaseAssistantmaterialDeliverymethod getDeliverymethodId(int deliveryMethodId)throws Throwable;
	
	@SuppressWarnings("unchecked")
	public List getDeliverymethodByName(String name)throws Throwable;
	
	@SuppressWarnings("unchecked")
	public List getDeliverymethodByCode(String code)throws Throwable;
	
	@SuppressWarnings("unchecked")
	public List getDeliverymethodByCodeAndName(String code,String name)throws Throwable;
	
	public List<PBaseAssistantmaterialDeliverymethod> getDeliverymethodList()throws Throwable;
	
	public boolean isSame(String deliveryMethodCode)throws Throwable;
}
